<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户密码</title>
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/assets/css/user/user-pwd.css">
</head>
<body>
    <!-- 卡片区域 -->
    <div class="layui-card">
        <div class="layui-card-header">修改密码</div>
        <div class="layui-card-body">
            <!-- 卡片区域 里面 放置 表单模块 -->
            <form class="layui-form" lay-filter='userForm'>
                <!-- 隐藏域（看不见的文本框） 用户 id -->
                <input type="hidden" name='id' value='-1'>
                <!-- 旧密码文本框 -->
                <div class="layui-form-item">
                  <label class="layui-form-label">旧密码</label>
                  <div class="layui-input-block">
                    <input type="password"  name="oldPwd" required  lay-verify="pwd" placeholder="请输入旧密码" autocomplete="off" class="layui-input">
                  </div>
                </div>

                <!-- 新密码文本框 -->
                <div class="layui-form-item">
                    <label class="layui-form-label">新密码</label>
                    <div class="layui-input-block">
                      <input type="password" name="newPwd" required  lay-verify="pwd|samepwd" placeholder="请输入新密码" autocomplete="off" class="layui-input">
                    </div>
                  </div>

                <!-- 确认密码文本框 -->  
                  <div class="layui-form-item">
                    <label class="layui-form-label">确认密码</label>
                    <div class="layui-input-block">
                      <input type="password" name="rePwd" required  lay-verify="pwd|confirmpwd" placeholder="请再确认密码" autocomplete="off" class="layui-input">
                    </div>
                  </div>

                <!-- 提交按钮 -->
                  <div class="layui-form-item">
                    <div class="layui-input-block">
                      <button class="layui-btn" lay-submit lay-filter="formDemo" >修改密码</button>
                      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                  </div>
            </form>
        </div>
      </div>

    <!-- 引入 layui 的js 文件 和自己的 js 文件 -->
    <script src="/assets/lib/jquery.js"></script>
    <!-- 在 jquery 下面导入 baseapi -->
    <script src="/assets/js/baseAPI.js"></script>
    <script src="/assets/lib/layui/layui.all.js"></script>
    <script src="/assets/js/userpwd.js"></script>

    
</body>
</html>